/**
 * Created by Freeman on 2016/6/28.
 */
export const addTodo = function ({dispatch},...arg) {
    dispatch('ADD_TODO',...arg)
}

export const toggleTodo=function ({dispatch},...arg) {
    dispatch('TOGGLE_TODO',...arg)
}

export const deleteTodo = function ({dispatch},...arg) {
    dispatch('DELETE_TODO',...arg)
}
export const editTodo = function ({dispatch},...arg) {
    dispatch('EDIT_TODO',...arg)
}

export const toggleAll = function ({dispatch},...arg) {
    dispatch('TOGGLE_ALL',...arg)
}
export const clearCompleted = function ({dispatch},...arg) {
    dispatch('CLEAR_COMPLETED',...arg)
}